<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>

<body>

<form id="myform"  method="post" action="javascript:alert('表单提交啦!')">
    <h3>反馈表</h3>
    <fieldset>
        <p>姓名: <input class="special" type="text" name="name" autofocus ></p>
        <p>性别:
            <input type="radio"  name="sex" value="0">男
            <input type="radio"  name="sex" value="1">女 </p>
        <p>邮箱: <input type="text" name="email"></p>
        <p>网址：<input type="text" name="web"></p>
        <p>反馈意见: <textarea name="message" cols="30" rows="10"></textarea> </p>
        <p class="submit">
            <button type="submit" name="submit">提交表单</button>
        </p>
    </fieldset>
</form>

<script>

var form = document.getElementById("myform");
var field = form.elements["name"];
if (element.autofocus !== true){
	element.focus(); 
}



</script>

</body>
</html>
